import _fetch from './request.js'
function getSubjectList(params) {
   return _fetch({
        url: "/subject/list",
        method: "get",
        params
      })
}

function getSubjectStatus(data) {
  return _fetch({
       url: "/subject/status",
       method: "post",
       data
     })
}

//新增学科
function addSubject(data) {
  return _fetch({
       url: "/subject/add",
       method: "post",
       data
     })
}


//修改
function editSubject(data) {
  return _fetch({
       url: "/subject/edit",
       method: "post",
       data
     })
}

//删除
function delSubject(data) {
  return _fetch({
       url: "/subject/remove",
       method: "post",
       data
     })
}
export {getSubjectList,getSubjectStatus,addSubject,editSubject,delSubject}